From a1edef2ad0494e54411bd66102b8219fb8244d08 Mon Sep 17 00:00:00 2001 From: aude Date: Fri, 21 Feb 2014 10:58:36 +0100 Subject: [PATCH] Add visibility to User functions Change-Id: Ib2bea5ba8132e79345b46ec3e6db7576af07a007 --- includes/User.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/User.php b/includes/User.php index d863a06bdc..b2a25f97b6 100644 --- a/includes/User.php +++ b/includes/User.php @@ -254,14 +254,14 @@ class User { * @see newFromSession() * @see newFromRow() */ - function __construct() { + public function __construct() { $this->clearInstanceCache( 'defaults' ); } /** * @return string */ - function __toString() { + public function __toString() { return $this->getName(); } @@ -1625,7 +1625,7 @@ class User { * @param bool $bFromSlave whether to check the slave database instead of the master * @return bool */ - function isBlockedFrom( $title, $bFromSlave = false ) { + public function isBlockedFrom( $title, $bFromSlave = false ) { global $wgBlockAllowsUTEdit; wfProfileIn( __METHOD__ ); @@ -3557,7 +3557,7 @@ class User { * Get whether the user is allowed to create an account. * @return bool */ - function isAllowedToCreateAccount() { + public function isAllowedToCreateAccount() { return $this->isAllowed( 'createaccount' ) && !$this->isBlockedFromCreateAccount(); } @@ -3885,7 +3885,7 @@ class User { * @note Call saveSettings() after calling this function to commit the change. * @return bool Returns true */ - function invalidateEmail() { + public function invalidateEmail() { $this->load(); $this->mEmailToken = null; $this->mEmailTokenExpires = null; @@ -3898,7 +3898,7 @@ class User { * Set the e-mail authentication timestamp. * @param string $timestamp TS_MW timestamp */ - function setEmailAuthenticationTimestamp( $timestamp ) { + public function setEmailAuthenticationTimestamp( $timestamp ) { $this->load(); $this->mEmailAuthenticated = $timestamp; wfRunHooks( 'UserSetEmailAuthenticationTimestamp', array( $this, &$this->mEmailAuthenticated ) ); -- 2.20.1